#include <iostream>
using namespace std;
int main ()

{
    int a, i;

    cout << "Ingrese un numero" << endl;
    cin >> a;
    i = 0;

    while (a != 0)
    {

    if (a < i)
    {
        i = a;
    }


    cin >> a;
    }

    cout << "El numero mas chico es: " << i << endl;

    return 1;
}
